﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookManage
{
    class Users  //用户类
    {
        //用户信息（部门、用户名、密码、用户角色）

       public string UserName { get; set; }
       public int UserPassWord { get; set; }
       public string UserDep { get; set; }
       public string UserPost { get; set; }

        public Users(string Name,int PassWord, string Dep, string Post)
        {
            this.UserName = Name;
            this.UserPassWord = PassWord;
            this.UserDep = Dep;
            this.UserPost = Post;
        }

        public Users()
        {

        }

        public void GetUsers()
        {
            Console.WriteLine("用户名：{0}，密码：{1}，部门：{2}，职位：{3}",
                this.UserName,this.UserPassWord,this.UserDep,this.UserPost);
        }
    }
}
